<head>
@extends('layouts.admin_common')
@section('content')
<!-- SSLの場合 -->
@if(app('env')=='production')
<link rel="stylesheet" href="{{ secure_asset('/css/sale.css') }}">
<script src="{{ secure_asset('/js/setting.js') }}"></script>
@else
<!-- SSLではない場合 -->
<link rel="stylesheet" href="{{ asset('/css/sale.css') }}">
<script src="{{ asset('/js/setting.js') }}"></script>
@endif

</head>

<div class="breadcrumbs_container">
    {{Breadcrumbs::render('admin.setgoods') }}
</div>
<div class="system_tab_line"></div>
<script src="{{ asset('laydate/laydate.js') }}"></script>
<script>
laydate.render({
	  elem: '#times'
	  ,lang: 'en'
	  ,type: 'time'
	});
</script>


<form class="form-inline" id="settingForm" method="post" enctype="multipart/form-data">
				@foreach ($SettingMasterInfo as $allSettingInfo)
                <table class="table table-condensed">
                     <tr>
					    <td>税率設定&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					    <input type="text" id='setRate' name="setRate" size="5" value="{{$allSettingInfo->comment1}}" class="form-control">&nbsp;％</td>
				    </tr>
				     <tr>
					    <td>送料設定&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					    <input type="text"  id='setFeed' name="setFeed" size="5" value="{{$allSettingInfo->comment2}}" class="form-control" placeholder=" ¥">&nbsp;&nbsp;+&nbsp;&nbsp;税</td>
				    </tr>
					<tr>
					    <td>送料無料設定&nbsp;&nbsp;&nbsp;&nbsp;
					    <input type="text" id='setUnpaid' name="setUnpaid" size="5" value="{{$allSettingInfo->comment3}}" class="form-control"  placeholder=" ¥">&nbsp;&nbsp;以上の場合</td>
				    </tr>
				     <tr>
					    <td>当日出荷時刻&nbsp;&nbsp;&nbsp;&nbsp;
					    <input type="text"   name="setTime" size="5" value="{{$allSettingInfo->comment4}}" class="form-control" id='times'></td>
				    </tr>
				    </table>
				    <table class="table table-condensed">
					<tr>
                        <td>在庫&nbsp;&nbsp;<input type="text"  id='setAbove' name="setAbove" size="3" value="{{$allSettingInfo->comment5}}" class="form-control">&nbsp;&nbsp;以上</td>
				    </tr>
				    <tr>
                        <td>在庫&nbsp;&nbsp;<input type="text" id='setStart' name="setStart" size="3" value="{{$allSettingInfo->comment6}}" class="form-control">
                        &nbsp;&nbsp;～&nbsp;&nbsp;
                        <input type="text" id='setEnd' name="setEnd" size="3" value="{{$allSettingInfo->comment7}}" class="form-control"></td>
				    </tr>
				    <tr>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="text"  id='setFollowing' name="setFollowing" size="3" value="{{$allSettingInfo->comment8}}" class="form-control">&nbsp;&nbsp;個以下は実数で表示</td>
				    </tr>
				 </table>
				 @endforeach
				 <table class="table table-condensed">

				    <tr>
				      <td>
				      <input type="hidden" name="created_at" id="created_at">
				      <input type="hidden" name="_token" value="{{csrf_token()}}">
					  </td>
				      <td>
					  </td>
                      <td>
 				      <input type="button" value="保存" class="pure-button pure-button-primary button_normal" onclick="onSubmitCommit('commitupdate','{{$allSettingInfo->created_at}}');" />&nbsp;&nbsp;
				      <input type="button" value="@lang('messages.cancel')" class="pure-button pure-button-primary button_normal" onclick="cancelSale()" />&nbsp;&nbsp;
					  <input type="button" value="戻る" class="pure-button pure-button-primary button_normal" onclick="onSubmitGo()" />
					  </td>
				    </tr>
				 </table>
</form>

@endsection
